﻿using Domain.Entities;
using FrameworkCore.Attributes;
using System.ComponentModel.DataAnnotations;

namespace AiBLSmartEdu.Module.Cust.API.DTOs;

#nullable disable

/// <summary>
/// 修改用户模型
/// </summary>
[Map(typeof(Customer))]
public class CustomerUpdateEmailInputModel
{
    /// <summary>
    /// 唯一标识
    /// </summary>
    public long? Id { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    [EmailAddress(ErrorMessage = "无效的邮箱格式")]
    public string? Email { get; set; }
}
